package ${cfg.basePackage}.module.service.impl;

import ${cfg.basePackage}.module.${cfg.modulePackage}.mapper.AllSimpleSysUserMapper;
import ${cfg.basePackage}.module.${cfg.modulePackage}.service.AllSimpleSysUserService;
import ${cfg.basePackage}.mybatis.entity.SysUser;
import com.mi.rule.db.dao.MiDao;
import com.mi.rule.util.project.SRS;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ${cfg.moduleName} 服务实现类
 *
 * @date ${date}
 */
@Slf4j
@Service
public class ${cfg.modulePackageUp}${entity}ServiceImpl implements ${cfg.modulePackageUp}${entity}Service {
    @Autowired
    private MiDao miDao;
    @Autowired
    private ${cfg.modulePackageUp}${entity}Mapper ${cfg.modulePackage}${entity}Mapper;

    //添加一条数据
    //@Transactional(rollbackFor = Exception.class)
    @Override
    public SRS insert(${entity} param) {
        return SRS.bySuccess();
    }

    //删除数据
    @Override
    public SRS delete(Long[] ids) {
        return SRS.bySuccess();
    }

    //修改一条数据
    @Override
    public SRS update(${entity} param) {
        return SRS.bySuccess();
    }

    //查询一条数据
    @Override
    public SRS info(SRS param) {
        return SRS.bySuccess();
    }

    //分页查询数据
    @Override
    public SRS page(SRS param) {
        return SRS.bySuccess();
    }

    //查询数据集合
    @Override
    public SRS list(SRS param) {
        return SRS.bySuccess();
    }

}